package com.da.javatest.niuke.baodian;

/**
 * @author chenlida
 * @date 2020/10/6 13:25
 * @description
 */
public class C20MinimalBST {
    public int buildMinimalBST(int[] vals) {
        int height = 0;
        int a = vals.length;
        while (a > 0) {
            a /= 2;
            height++;
        }
        return height;
    }
}
